﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterPage/admin/Manage.master" AutoEventWireup="true" CodeFile="AddNews.aspx.cs" Inherits="AddNews" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

    <div id="addndws" class="m_cate2">
    <h3>&copy;编辑新闻</h3>
    <div class="con">
        <p>新闻标题<asp:TextBox ID="txtTitle" runat="server" CssClass="txttitle"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTitle"
                                                            ErrorMessage="请输入零部件名"></asp:RequiredFieldValidator></p>
        <p>新闻分类：
            <asp:DropDownList ID="dplCatagory" runat="server" DataSourceID = "SqlDataSource1" DataTextField="CaName" DataValueField="CaID">
            </asp:DropDownList>
            
        </p>
        <p>新闻内容： <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="RadEditor1"
                                                            ErrorMessage="请输入零部件名"></asp:RequiredFieldValidator></asp:Label>
        </p>
        <telerik:RadEditor ID="RadEditor1" Runat="server">
        </telerik:RadEditor>
        <p><asp:Button ID="btnAdd" runat="server" Text="提交新闻" onclick="btnAdd_Click" />
            <asp:HiddenField ID="hidID" runat="server" />
            <asp:HiddenField ID="hideSts" runat="server" />
        </p>
        
        <div>提示：点击新闻</div>
        <div class="footer"><p>&nbsp;</p></div> 
   </div>
</div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>"
        SelectCommand="SELECT CaID,CaName FROM [XPNewsCateGory]  ORDER BY CaID">
    </asp:SqlDataSource>
</asp:Content>

